var MomObj = function  () {
	this.x;
	this.y;
	this.angle;

	this.bigTailTimer;
	this.bigTailCount;

	this.bigEyeTimer;
	this.bigEyeCount;
	this.bigEyeInterval;

	this.bigSwimTimer;
	this.bigSwimCount;
	this.bigStartCount;

}
MomObj.prototype.init = function  () {
	this.x = can_w * 0.5;
	this.y = can_h * 0.5;
	this.angle = 0;

	this.bigTailTimer = 0;
	this.bigTailCount = 0;

	this.bigEyeTimer = 0;
	this.bigEyeCount = 0;
	this.bigEyeInterval = 1000;

	this.bigSwimTimer = 0;
	this.bigSwimCount = 0;
	this.bigStartCount = 0;

}
MomObj.prototype.draw = function  () {

	this.x = lerpDistance( mouseX, this.x, 0.96);
	this.y =  lerpDistance( mouseY, this.y, 0.96);
	//lerta angel
	var deltaY = mouseY - this.y;
	var deltaX = mouseX - this.x;
	var beta = Math.atan2( deltaY, deltaX) + Math.PI;
	this.angle = lerpAngle( beta , this.angle, 0.6);
	
	this.bigTailTimer += deltaTime;
	if( this.bigTailTimer > 50 ){
		this.bigTailCount = (this.bigTailCount + 1 ) % 8;
		this.bigTailTimer %= 50; 
	}

	this.bigEyeTimer += deltaTime;
	if( this.bigEyeTimer > this.bigEyeInterval ){
		this.bigEyeCount = ( this.bigEyeCount + 1 ) % 2;
		this.bigEyeTimer %= this.bigEyeInterval;
		
		if( this.bigEyeCount == 0 ){
			this.bigEyeInterval = Math.random() * 1500 + 2000;
		}else{
			this.bigEyeInterval = 200;
		}
	}


	ctx1.save();
	ctx1.translate( this.x, this.y);
	ctx1.rotate( this.angle );

	var bigTailCount = this.bigTailCount;
	ctx1.drawImage( bigTail[bigTailCount], -bigTail[bigTailCount].width * 0.5 + 30, -bigTail[bigTailCount].height * 0.5 );
	
	var bigSwimCount = this.bigSwimCount;
	if( data.double == 1 ){
		ctx1.drawImage( bigSwimOrange[bigSwimCount], -bigSwimOrange[bigSwimCount].width * 0.5, -bigSwimOrange[bigSwimCount].height * 0.5 );
	}else{
		ctx1.drawImage( bigSwimBlue[bigSwimCount], -bigSwimBlue[bigSwimCount].width * 0.5, -bigSwimBlue[bigSwimCount].height * 0.5 );
	}
	
	var bigEyeCount = this.bigEyeCount;
	ctx1.drawImage( bigEye[bigEyeCount], -bigEye[bigEyeCount].width * 0.5, -bigEye[bigEyeCount].height * 0.5 );
	ctx1.restore();

}